template
div
  h1添加新闻h1
  p标题input type=text v-model=from.titlep
  p内容input type=text v-model=from.registerp
  button @click=post_jou添加button
div
template

script
export default {
name add_jou,
  data(){
    return{
      from{}
    }
  },
  methods{
    post_jou(){
      this.$axios.post('usersjou',this.from).then(res={
        if(res.data.code==200){
          alert('添加成功')
          this.from={}
        }
      })
    }
  }
}
script

style scoped

style
